package com.yuanchu.order.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yuanchu.common.validator.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-02-28 11:32
 */
@Data
public class OrderDeliveryParamsDto {

    @NotNull(message = "订单id不能为空", groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    private Integer orderId;
    private OrderExpressForm form;

    @Data
    public static class OrderExpressForm {
        @NotNull(message = "物流id不能为空", groups = {ValidationGroups.Update.class})
        @JsonProperty("express_id")
        private Integer expressId;

        @NotNull(message = "物流订单no不能为空", groups = {ValidationGroups.Update.class})
        @JsonProperty("express_no")
        private String expressNo;
        /**
         * 审核状态 1 同意； 0 拒绝
         */
        private Integer status;
    }
}
